import 'package:ecy_app_flutter/routes/consignment/model/ConsignReply.dart';
import 'package:json_annotation/json_annotation.dart';

part 'ConsignComment.g.dart';

@JsonSerializable()
class ConsignComment {
  ConsignComment();

  int? id;
  int? productId;
  String? userId;
  String? content;
  String? createTime;
  int? replyCount;
  int? likeCount;
  bool? like;
  String? userName;
  String? userImgUrl;
  int? commentCount;
  List<ConsignReply>? replyList;
  
  factory ConsignComment.fromJson(Map<String,dynamic> json) => _$ConsignCommentFromJson(json);
  Map<String, dynamic> toJson() => _$ConsignCommentToJson(this);
}
